# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=ripdrag
pkgver=0.4.5
pkgrel=0
pkgdesc="Drag and Drop utilty written in Rust and GTK4"
url="https://github.com/nik012003/ripdrag"
arch="all"
license="GPL-3.0-only"
makedepends="
	cargo
	cargo-auditable
	gtk4.0-dev
"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/nik012003/ripdrag/archive/refs/tags/v$pkgver.tar.gz
"
options="!check" # no tests

prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

package() {
	install -Dm 755 target/release/ripdrag "$pkgdir"/usr/bin/ripdrag
}

sha512sums="
2f3744cd80f60e0838f647c647ef282299c4b0038ce56c824c66abdb2a8ffaca2a5914fc8f4b5e87c3e26ead3e89a932fb8e9056abb4a63fe0931feaac969f95  ripdrag-0.4.5.tar.gz
"
